package com.hhe.datax_transfer.exception;

/**
 * 服务层异常
 *
 * @author HHe
 * @version V1.0
 * @date 2021/1/8 16:34
 */
public class ServiceException extends RuntimeException {
    private String code;

    private String message;

    public ServiceException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
